]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
viewSelector: Allow to close the application view with escape
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 15 Aug 2012 10:20:24 +0000 (12:20 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 20 Aug 2012 18:40:01 +0000 (20:40 +0200)
With the latest changes to the overview, the application view is now
clearly on a different level compared to the window picker. For that
reason it now makes sense to close it on Escape rather than hiding
the overview directly, as we do for search.

https://bugzilla.gnome.org/show_bug.cgi?id=682109

js/ui/viewSelector.js

index c2d3727f7d308109b472a2fd1c925271174b329d..36626b2754061cc383be5ff6d57188533f37104e 100644 (file)
@@ -240,6 +240,8 @@ const ViewSelector = new Lang.Class({
         if (symbol == Clutter.Escape) {
             if (this.active)
                 this.reset();
+            else if (this._showAppsButton.checked)
+                this._resetShowAppsButton();
             else
                 Main.overview.hide();
             return true;